﻿//
// Created by @author 吴子昂 on 2025/11/4
//

#ifndef ARMOURRECOGNIZER_VIDEOPROCESS_H
#define ARMOURRECOGNIZER_VIDEOPROCESS_H

#include<iostream>
#include<opencv2/opencv.hpp>
#include <opencv2/core/ocl.hpp>
using namespace cv;
using namespace std;

class videoProcess : public VideoCapture
{
public:
    using VideoCapture::VideoCapture;
    videoProcess();
    ~videoProcess();
    bool preProcessBlurred();
    Mat getFrame();
    void showFrame();
    void setFrame(const Mat& frame);
    bool preProcessHSVCanny(int hLow, int hHigh, int sLow, int sHigh, int vLow, int vHigh);
    void showProcessedFrame();
    Mat getProcessedFrame();
    void setSize(int width, int height);
private:
    Mat frame;
    Mat processedFrame;
};


#endif //ARMOURRECOGNIZER_VIDEOPROCESS_H